package com.ezops.dtcc.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.ezops.dtcc.model.AckNack;
import com.ezops.dtcc.model.DtccRulesDef;

public class DtccRulesDefRowMapper implements RowMapper<Object> {
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		
		DtccRulesDef dtccRuleDef = new DtccRulesDef();
		dtccRuleDef.setRuleId(rs.getInt("RULE_ID"));
		dtccRuleDef.setSeqId(rs.getInt("SEQ_ID"));
		dtccRuleDef.setAssignOpr(rs.getString("ASSIGN_OPR"));
		dtccRuleDef.setAttributeName(rs.getString("ATTR_NAME"));
		dtccRuleDef.setIncrOpr(rs.getString("INCR_OPR"));
		dtccRuleDef.setAttributeVal(rs.getString("ATTR_VAL")); 
		return dtccRuleDef;
		
	}
}
